# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-scp
_pkgname=scp.py
pkgver=0.15.0
pkgrel=0
pkgdesc="scp module for paramiko"
url="https://github.com/jbardin/scp.py"
arch="noarch"
license="LGPL-2.1-or-later"
depends="python3 py3-paramiko py3-cffi py3-idna py3-cparser"
makedepends="py3-setuptools"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/jbardin/$_pkgname/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-scp" # Backwards compatibility
provides="py-scp=$pkgver-r$pkgrel" # Backwards compatibility

check() {
	python3 setup.py check
}

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
a69ac31e476bbb8ee1f561d111ea3cb393f5948e4342f4874bb11d2208e0829bbdac647d6d2994971cc353161091490efd3f6d8976392a13b8be1e78d6feb3d3  py3-scp-0.15.0.tar.gz
"
